<template>
  <div id="hot-page">

  <el-carousel :interval="4000" type="card" height="300px">
    <el-carousel-item v-for="item in 6" :key="item">
      <div class="img-container"> <img src="../../assets/6.jpg"  class="banner-img"></img>
      <div class="slider-caption">
        <div class="slider-title">甄嬛传</div>
        <div class="slider-description">熹贵妃竟与温太医私通，秽乱后宫其罪当主宫其罪当主</div>
      </div>
      </div>
      
    </el-carousel-item>
  </el-carousel>

   
  <div class="video-wrap">
      <div><h1>今日热门</h1></div>
      <div class="block-container">
      <!-- <div class="video-block" v-for="item in list" :key="item"> </div> -->
      <div class="list">

        <div class="list-item"  v-for="item in 6" :key="item">
        <img src="../../assets/6.jpg" class="video-img">
        <div class="description">4:30</div>
        <div class="title"> 熹贵妃竟与温太医私通，秽乱后宫其罪当主宫其罪当主xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
        </div>

      </div>

      </div>
  </div>

  <div class="video-wrap">
      <div><h1>热播美剧</h1></div>
      <div class="block-container">
      <!-- <div class="video-block" v-for="item in list" :key="item"> </div> -->
      <div class="list">

        <div class="list-item"  v-for="item in 6" :key="item">
        <img src="../../assets/6.jpg" class="video-img">
        <div class="description">4:30</div>
        <div class="title"> 熹贵妃竟与温太医私通，秽乱后宫其罪当主宫其罪当主xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
        </div>

      </div>

      </div>
  </div>
  
  <div class="video-wrap">
      <div><h1>最新动漫</h1></div>
      <div class="block-container">
      <!-- <div class="video-block" v-for="item in list" :key="item"> </div> -->
      <div class="list">

        <div class="list-item"  v-for="item in 6" :key="item">
        <img src="../../assets/6.jpg" class="video-img">
        <div class="description">4:30</div>
        <div class="title"> 熹贵妃竟与温太医私通，秽乱后宫其罪当主宫其罪当主xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx</div>
        </div>

      </div>

      </div>
  </div>

  <div class="empty-box">

  </div>
  </div>
</template>
<script>

export default {
  name:'hotPage',
  data(){
    return{
      list:[
        {picUrl:"/assets"}
      ]
    }
  },
  mounted(){
    this.$axios.get('https://movie.douban.com')
  }
}
</script>
<style lang="scss" scoped>
#hot-page{
  height: 100vh;
  color: black;
}
.empty-box{
  height: 100px;
}
.img-container{
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.banner-img{
  width:100%;
  height: 100%;
  object-fit: cover;
  transition: .4s;
}
.slider-caption{
    z-index: 3;
    position: absolute;
    right: -1px;
    bottom: -1px;
    left: -1px;
    height: 180px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(-180deg,rgba(0,0,0,0) 11%,rgba(22,21,25,.89) 88%);
    font-size: 16px;
    letter-spacing: normal;
  .slider-description{
    position: absolute;
    bottom: 15px;
    color: #fff;
    opacity: 0.9;
    font-size: 13px;
    left: 15px;
    text-overflow: ellipsis;
  }
  .slider-title{
    opacity: 0.9;
    position: absolute;
    bottom: 30px;
    color: #fff;
    font-size: 36px;
    letter-spacing: normal;
    left: 15px;
    font-weight: 200;
    }
}
.video-wrap{
 width: 1184px;
 margin: 0 auto;
  h1{
  font-size: 2rem;
  font-weight: normal;
  padding-left: 10px;
  }
  h1::before{
    position: relative;
    top: 5px;
    left: -10px;
    content: "";
    width: 10px;
    background-color: rgb(255, 142, 22);
    display: inline-block;
    height: 2rem;
  }
  .list{
     display: flex;
     justify-content: space-between;
     align-items: center;
    .list-item{
        position: relative;
        width: 170px;
        height: 200px;
        margin-right: 20px;
        margin-bottom: 20px;
        .video-img{
          width: 170px;
          height: 100px;
          border-radius:5px;
        }
        .description{
          color: #fff;
          position:absolute;
          bottom: 4px;
          left: 4px;
          z-index: 999;
        }
       
    }
    .title{
      color: rgb(17, 17,17);
      font-size: 14px;
      line-height: 24px;
      letter-spacing: 1px;
      max-height: 44px;
       text-overflow:ellipsis;
      overflow: hidden;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
    }

  }
}


.block-container{
  display: flex;
  
}
 .el-carousel__item h3 {
    color: #475669;
    font-size: 14px;
    opacity: 0.75;
    line-height: 200px;
    margin: 0;
  }
  
  .el-carousel__item{
    background-color: transparent;
  }
 
</style>